/****************************************************
          File Name:13-2.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sat 03 Jan 2015 07:35:53 PM CST
*****************************************************/

#include<iostream>
using namespace std;

#ifndef HEADER_H_
#define HEADER_H_

// base class

class Cd
{
    private:
        char *performers;
        char *label;
        int selections;
        double playtime;
    public:
        Cd(const char *s1, const char *s2, int n, double x);
        //Cd(const Cd & d);
        //Cd();
        virtual ~Cd();
        virtual void Report() const;        // report all CD data
        Cd & operator=(const Cd & d);       // inherited by 'Classic'
};

class Classic: public Cd
{
    private:
        char *maintype;
    public:
        Classic(const char *s1, const char *s2, const char *s3, int n, double x);
        Classic();
        ~Classic();
        virtual void Report() const;        // overload Cd::Report()
};

#endif
